<?php

Class PhenotypicMain {
	private $registry;

	function __construct($registry) {
		$this->registry = $registry;
	}

	function execute($controller) {
		$t = $this->registry->template;

		// TODO generisize this
		include __SITE_PATH . "/mainthing/language/en.php";

		$t->css = "mainthing/view/css/global.css";

		//		echo "<pre>";
		//		print_r($template);
		//		echo "</pre>";

		$t->controller = $controller;

		$t->show("mainthing/view/layout");
	}
}

?>